package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.pojo.Backdown;
import com.neudu.yyzx_service.service.BackdownService;
import com.neudu.yyzx_service.mapper.BackdownMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【backdown】的数据库操作Service实现
 * @createDate 2023-10-01
 */
@Service
public class BackdownServiceImpl extends ServiceImpl<BackdownMapper, Backdown>
    implements BackdownService{
    
    @Autowired
    private BackdownMapper backdownMapper;
    
    @Override
    public List<Backdown> getBackdownsByCustomerName(String customerName) {
        return backdownMapper.getBackdownsByCustomerName(customerName);
    }
    
    @Override
    public List<Backdown> getAllBackdownsWithCustomerName() {
        return backdownMapper.getAllBackdownsWithCustomerName();
    }
    
    @Override
    public Backdown getBackdownWithCustomerNameById(Integer backdownId) {
        return backdownMapper.getBackdownWithCustomerNameById(backdownId);
    }
} 